<template>
  <div>
    <button @click="imgShowing = !imgShowing">按钮</button>
    <br />
    <!-- 是否显示 -->
    <img v-show="imgShowing" src="@/assets/logo.png" />
  </div>
</template>

<script>
export default {
  data: () => ({
    imgShowing: true
  })
}
</script>
